class ziXunModel {
  int iD;
  String title;
  String author;
  String date;
  String thumbnail;
  String url;
  String tag;
  bool isPublish;
  int isFavor;
  bool isTop;
  String abstract;

  ziXunModel(
      {this.iD,
      this.title,
      this.author,
      this.date,
      this.thumbnail,
      this.url,
      this.tag,
      this.isPublish,
      this.isFavor,
      this.isTop,
      this.abstract});

  ziXunModel.fromJson(Map<String, dynamic> json) {
    iD = json['ID'];
    title = json['title'];
    author = json['author'];
    date = json['date'];
    thumbnail = json['thumbnail'];
    url = json['url'];
    tag = json['tag'];
    isPublish = json['is_publish'];
    isFavor = json['is_favor'];
    isTop = json['is_top'];
    abstract = json['abstract'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['ID'] = this.iD;
    data['title'] = this.title;
    data['author'] = this.author;
    data['date'] = this.date;
    data['thumbnail'] = this.thumbnail;
    data['url'] = this.url;
    data['tag'] = this.tag;
    data['is_publish'] = this.isPublish;
    data['is_favor'] = this.isFavor;
    data['is_top'] = this.isTop;
    data['abstract'] = this.abstract;
    return data;
  }
}
